package org.liuqm.proxy.jdkproxy;

import org.liuqm.proxy.staticproxy.Buyer;
import org.liuqm.proxy.staticproxy.XiaoMeiBuyer;

public class JDKProxyTest {

    public static void main(String[] args) {
        SysUserService sysUserService = JDKProxyFactory.createBuyer(new SysUserServiceImpl());

        sysUserService.count();

        sysUserService.getList();


        Buyer buyer = JDKProxyFactory.createBuyer(new XiaoMeiBuyer());

        buyer.buyer();


    }
}
